package com.tbit.uqbike.object.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tbit.uqbike.annos.Excel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 升级车辆
 *
 * @author <a href="mailto:liu.haoxiang@tbit.com.cn">BUGXiang</a>
 * @version 1.0
 * @since 2024/3/15
 */
@Data
@Accessors(chain = true)
public class UpgradeMachine {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer upgradeId;
    /**
     * 车辆id
     */
    private Integer machineId;

    /**
     * 区域id
     */
    private Integer accountId;
    /**
     * 配置文件版本号
     */
    @Excel(name = "配置文件版本号", sort = 3)
    private String version;
    /**
     * 升级状态(1:升级成功 2:部分成功 3:升级失败 4: 未升级 5:升级中)
     */
    private String upgradeType;
    /**
     * 失败原因
     */
    @Excel(name = "失败原因", sort = 5)
    private String failReason;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", sort = 6)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 创建人
     */
    private Integer createUser;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", sort = 7)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
